package com.workoutgrabber.ui.listeners;

import java.awt.AWTEvent;

import com.workoutgrabber.model.Exercise;

public class ExerciseCreatedEvent extends AWTEvent {
	private Exercise exercise;
	
	public ExerciseCreatedEvent(Object source, int id) {
		super(source, id);
	}
	
	public ExerciseCreatedEvent(Object source, int id, Exercise exercise) {
		super(source, id);
		
		this.exercise = exercise;
	}
	
	public Exercise getExercise(){
		return exercise;
	}
}
